package com.servlets;


import com.pojo.ShopCart;
import com.service.ShopCartService;
import com.service.impl.ShopCartServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.UUID;

@WebServlet("/shopCart.do")
public class ShopCartServlet extends BaseServlet{
    private ShopCartService service = new ShopCartServiceImpl();

    public void findShopCart(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
        String userID = request.getParameter("userID");
        ShopCart shopCart = service.findByUserID(userID);

        response.sendRedirect("/eshop/reception/shoppingCart.jsp");
    }
}
